@-ms-viewport{ width: device-width; }

/* Reset default styles */
body, ul {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

body.no-scroll {
  overflow: hidden;
}

/* Navigation styles */
.nav-wrapper {
  position: fixed;
  width: 100%;
  z-index: 1;
}

nav {
  background-color: #333;
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px 0 20px;
}

.nav-wrapper.hide {
  display: none;
}

.logo {
  position: relative;
  overflow: visible;
  margin-top: 80px;
  z-index: 1;
}

.logo img {
  height: 100px;
}

nav ul {
  list-style-type: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

nav li {
  margin: 0 10px;
}

nav li a {
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 15px;
  transition: all 0.3s ease;
}

nav li a:hover {
  background-color: #555;
  border-radius: 4px;
}

nav li:last-child {
  padding-right: 20px;
}

.toggle-button {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  display: none;
  padding-top: 10px;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
}

.toggle-button .bar {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 10px;
}

/* Container styles */
.container {
  position: relative;
  top: 60px;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 90vh; /* Ensure the container takes up the full height of the viewport */
  background-color: #f5f5f5;
}

.content {
  position: relative;
  width: 100%;
  bottom: 0;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
}

/* Welcome container styles */
.welcome-container {
  position: relative;
  width: 100%;
  aspect-ratio: 500/ 212;
}

.welcome-background {
  position: absolute;
  width: 100%;
}

.welcome-message {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  background-size: cover;
  text-align: right;
}

.welcome-container h1 {
  position: absolute;
  right: 0;
  height: fit-content;
  padding: 2.5%;
  font-size: calc(100% + 3.7vw);
  font-weight: normal;
  color: #fff;
}

/* Taglines container styles */
.icons {
  height: 70%;
}

.taglines-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: -10%;
}

.tagline-box {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 15rem;
  height: 15rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: white;
  word-wrap: break-word;
  padding: 2.5%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.tagline-box:last-child {
  margin-bottom: 2.5%;
}

.tagline-box p {
  font-size: calc(100% + 0.3vw);
  color: black;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
}

/* About Us container styles */
.about-container {
  max-width: 90%; /* Increase the width as desired */
  width: 80%; /* Specify a fixed or percentage width */
  margin: 40px auto; /* Center the container horizontally */
  padding: 40px;
  text-align: justify;
  text-justify: inter-word; /* Justify the text */
  background-color: #fff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.about-container h2 {
  text-align: center;
  font-size: 40px;
  color: #333;
  margin-bottom: 40px;
}

.about-container p {
  font-size: 18px;
  color: #333;
  line-height: 1.5;
}

/* Carburizing Fluid Container Styles */
.carburizing-fluid-container {
  max-width: 90%; /* Increase the width as desired */
  width: 80%; /* Specify a fixed or percentage width */
  margin: 40px auto; /* Center the container horizontally */
  padding: 40px;
  text-align: center;
  text-justify: inter-word; /* Justify the text */
  background-color: #fff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.carburizing-fluid-container h2 {
  text-align: center;
  font-size: 40px;
  color: #333;
  margin-bottom: 40px;
}

.open-pdf-link {
  margin-top: 10px;
  display: inline-block;
  padding: 8px 16px;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* Products container styles */
.products-container {
  max-width: 90%; /* Increase the width as desired */
  width: 80%; /* Specify a fixed or percentage width */
  margin: 40px auto; /* Center the container horizontally */
  padding: 40px;
  text-align: justify;
  text-justify: inter-word; /* Justify the text */
  background-color: #fff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.product-display {
  max-width: 900px; /* Increase the width as desired */
  margin: 0 auto; /* Center the container horizontally */
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  justify-content: center;
}

.product-box {
  flex-basis: calc(50% - 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  text-align: center;
}

.product-box img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.product-box h3 {
  margin-top: 20px;
}

.products-container h2 {
  text-align: center;
  font-size: 40px;
  color: #333;
  margin-bottom: 40px;
}

.details-link, .close-button {
  margin-top: 10px;
  display: inline-block;
  padding: 8px 16px;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.details-link, .close-button:hover {
  background-color: #555;
  cursor: pointer;
}

.details-content {
  display: none;
}

.details-content.show {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  padding: 10px;
  box-sizing: border-box;
  vertical-align: middle;
}

.details-content.expanded {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.details-center {
  display: flex;
  width: 100%;
  height: 100%;
}

.details-content .details-box {
  max-width: 600px;
  margin: auto auto;
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.details-content p {
  color: #000;
  font-size: 18px;
  text-align: justify;
}

/* FAQ container styles */
.faq-container {
  max-width: 90%; /* Increase the width as desired */
  width: 80%; /* Specify a fixed or percentage width */
  margin: 40px auto; /* Center the container horizontally */
  padding: 40px;
  background-color: #fff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  text-align: justify;
  text-justify: inter-word; /* Justify the text */
}

.accordion {
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
}

.accordion__question {
  font-weight: bold;
  font-size: 18px;
  padding: 20px;
}

.accordion__answer {
  display: none;
  padding: 0 20px 0 0;
}

.accordion:hover {
  cursor: pointer;
}

.accordion.active .accordion__answer {
  display: block;
}

.faq-container h2 {
  text-align: center;
  font-size: 40px;
  color: #333;
  margin-bottom: 40px;
}

dl {
  margin: 0;
}

dt {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
}

dd {
  font-weight: bold;
  margin-bottom: 20px;
  font-size: 16px;
}

/* Contact container styles */
.contact-container {
  max-width: 90%; /* Increase the width as desired */
  width: 90%; /* Specify a fixed or percentage width */
  margin: 40px auto; /* Center the container horizontally */
  padding: 20px;
  background-color: #fff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Contact form styles */
/* Contact Form */
.contact-form {
  padding: 40px;
  text-align: justify;
  text-justify: inter-word;
  background-color: #fff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  position: relative;
}

.contact-form h2 {
  font-size: 40px;
  color: #333;
  margin: 20px 0;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

textarea {
  height: 150px; /* Adjust the height as needed */
}

input[type="submit"] {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
  background-color: #555;
}

.required-indicator {
  color: red;
}

.required-fields {
  margin-top: 10px;
  color: red;
  font-size: 14px;
}

.form-group {
  margin: 20px 0;
}

/* Contact Info */
.contact-details td{
  padding: 15px;
}

.contact-info-icons img {
  width: 20px;
  height: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.contact-info-social img {
  width: 70px;
  height: 70px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.contact-info-social a img:hover {
  opacity: 0.5;
}

td {
  padding: 5px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  height: auto;
  margin: 40px auto;
  padding: 40px;
  background-color: #fff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  word-wrap: break-word;
}

.contact-info h2 {
  font-size: 40px;
  color: #333;
  margin: 20px 0;
}

.contact-info table {
  table-layout: fixed;
  width: 100%;
  padding: 5px 0;
  word-wrap: break-word;
}

.contact-info-social td{
  width: auto;
}

td {
  width: 30px;
  align-items: center;
}

td+td {
  width: auto;
}

/* Google maps styles */
.google-maps h2 {
  font-size: 40px;
  color: #333;
  margin: 20px 0;
}

.google-map {
  display: flex;
  flex-direction: column;
  height: auto;
  margin: 40px auto;
  padding: 40px;
  text-align: justify;
  text-justify: inter-word; /* Justify the text */
  background-color: #fff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

iframe {
  width: 100%;
}

/* Adjust for screen width */
@media (max-width: 768px) {
  .toggle-button {
    display: flex;
    margin-top: 2px;
    padding-right: 20px;
  }

  nav {
    align-items: normal;
    padding: 10px;
    height: auto;
  }

  .logo {
    margin-top: 0px;
    height: 40px
  }

  .navbar-links {
    display: none;
    margin-top: 45px;
  }

  nav ul{
    flex-direction: column;
    align-items: flex-end;
  }

  nav ul {
    width: 100%;
  }

  nav li {
    margin-right: 0;
    padding: 10px 30px 10px 0;
  }

  nav li:last-child {
    padding-right: 30px;
  }

  .navbar-links.active{
    display: flex;
  }

  .icons {
    height: 50%;
  }

  .tagline-box {
    width: 12rem;
    height: 12rem;
  }

  .accordion__question {
    font-size: 16px;
  }

  .accordion__answer {
    font-size: 14px;
  }

  .contact-form, .contact-info, .google-map {
    padding: 20px;
  }

  .products-container img {
    height: 200px;
    width: 200px;
  }
}

@media (min-width: 1024px) {
  .contact-container {
    max-width: 90%;
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: 50% 50%;
    flex: 1;
    flex-direction: column;
  }
  
  .google-map {
    justify-content: center;
    margin: 10px;
    grid-row-start: 2;
    grid-row-end: 3;
    grid-column-start: 2;
    grid-column-end: 3;
  }

  .contact-info {
    margin: 10px;
    grid-row-start: 1;
    grid-row-end: 2;
    grid-column-start: 2;
    grid-column-end: 3;
  }

  .contact-form {
    margin: 10px;
    grid-row-start: 1;
    grid-row-end: 3;
    grid-column-start: 1;
    grid-column-end: 2;
  }

  iframe {
    width: 100%;
    height: 400px;
  }
}

@media (min-width: 366px) {
  .taglines-container {
    margin-top: -10%;
  }

  .welcome-container h1 {
    padding: 2.5%;
  }
}

@media (max-width: 360px) {
  .welcome-container h1 {
    margin-top: 2.5%;
  }
}

@media (max-width: 300px) {
  .taglines-container {
    margin-top: 0;
  }

  .details-content p, .about-container p, .faq-container p, .faq-container dd, .faq-container dt, .contact-info td {
    font-size: 14px;
  }

  .details-content h2, .about-container h2, .faq-container h2, .contact-form h2, .contact-info h2, .google-map h2{
    font-size: 32px;
  }

  .about-container, .faq-container, .products-container, .contact-container {
    padding: 40px 20px;
  }

  .contact-info-social img{
    width: 30px;
    height: 30px;
  }
}

/* Footer styles */
footer {
  background-color: #333;
  color: #fff;
  padding: 20px;
  text-align: center;
  margin-top: auto;
}